package com.jcp.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

import com.jcp.entity.Park;

import tk.mybatis.mapper.common.Mapper;

/**
 * ��λ��dao�ӿ�
 * �̳���ͨ��Mapper�ӿ�
 * @author Administrator
 *
 */
@Repository
public interface ParkMapper{
	//车位的查询
	@Select(value="select * from Park")
	List<Park> selectPark();
	//车位管理的修改功能
	@Update(value="update Park set ordinary_park_space=#{ordinary_park_space},vip_park_space=#{vip_park_space},remaining_park_space=#{remaining_park_space}")
	int updatePark(@Param(value="ordinary_park_space")int ordinary_park_space,@Param(value="vip_park_space")int vip_park_space,@Param(value="remaining_park_space")int remaining_park_space);

}
